package cn.lls.dao;

import cn.lls.dto.EmployeeLoginDTO;
import cn.lls.req.emp.ConditionSearchEmployeeExcelReq;
import cn.lls.req.emp.ConditionSearchEmployeeReq;
import cn.lls.req.emp.EMPAccountReq;
import cn.lls.req.emp.EmployeeInfoReq;
import cn.lls.vo.emp.EmployeeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName EmployeeDao
 * @Author 划水艺术家
 * @Date 2022/11/21 23:14
 * @Version 1.0
 **/
@Mapper
public interface EmployeeDao extends BaseMapper<EmployeeInfoReq> {

    IPage<EmployeeInfo> getEmployeeInfoByPageAndCondition(IPage page,
                                                          @Param("req") ConditionSearchEmployeeReq conditionSearchEmployeeReq);

    EmployeeInfo getEmployeeById(Long employeeId);


    List<EmployeeInfo> getEmployeeExcel(@Param("req")ConditionSearchEmployeeExcelReq conditionSearchEmployeeExcelReq);

    EmployeeLoginDTO empLogin(@Param("req")EMPAccountReq req);

}
